Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

281
Views
Lección 7: Error de versión del compilador -> 10:43.16 (Curso completo de solidez de blockchain)
$ /home/ionmind/hardhat-fundme-fcc/node_modules/.bin/hardhat deploy --network rinkeby Error HH606: The project cannot be compiled, see reasons below. These files import other files that use a different and incompatible version of Solidity: * contracts/test/MockV3Aggregator.sol (^0.8.12) imports @chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol (^0.6.0) To learn more, run the command again with --verbose Read about compiler configuration at https://hardhat.org/config

Después de recibir este error, modifiqué el archivo hardhat.config.js como se indica en el video.

 module.exports = { //solidity: "0.8.12", solidity: { compilers: [{ version: "0.8.12" }, { version: "0.6.0" }], },

Pero sigo recibiendo el error, así que también modifiqué la versión del compilador en el archivo solhint.js

 { "extends": "solhint:recommended", "rules": { "compiler-version": ["error", "^0.8.12", "^0.6.0"], "func-visibility": ["warn", { "ignoreConstructors": true }], "var-name-mixedcase": "off", "avoid-low-level-calls": "off" } }

Pero sigue recibiendo el error.

Creé un archivo AggregatorV2V3Interface separado en la carpeta de prueba, importado localmente en MockV3Aggregator.sol y también declaré la versión de solidez ^ 0.8.12 para cada uno de los archivos

 //SPDX-License-Identifier:MIT pragma solidity ^0.8.12; interface AggregatorInterface { //Code Here// } interface AggregatorV3Interface { //Code Here// } interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}
 //SPDX-License-Identifier:MIT pragma solidity ^0.8.12; import "./AggregatorV2V3Interface.sol";

No hay errores ni advertencias en el código, pero sigo teniendo el mismo error cuando intento compilar. No entiendo por qué parece que soy la única persona que tiene este problema con el compilador. Se agradece cualquier ayuda. ¡Gracias!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Actualice sus versiones de solidez:

 module.exports = { //solidity: "0.8.12", solidity: { compilers: [{ version: "0.8.12" }, { version: "0.6.6" }], },
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!